package datas.gameflow.ui;

import org.andengine.entity.sprite.Sprite;

public class Cell {
	int ID;
	Sprite Left, Right, Top, Bottom;
	Point TopLeft, TopRight, BottomLeft, BottomRight;
	Sprite Item;
	int NumEdge;
	int personID;
	
	public Cell(int ID, Sprite left, Sprite right, Sprite top, Sprite bottom,
				Point topLeft, Point topRight, Point bottomLeft, Point bottomRight, Sprite Item){
		this.ID = ID;
		this.Left = left; this.Right = right; this.Top = top; this.Bottom = bottom;
		this.TopLeft = topLeft; this.TopRight = topRight; this.BottomLeft = bottomLeft; this.BottomRight = bottomRight;
		this.Item = Item;
		this.NumEdge = 0;
		this.personID = -1;
	}
	
	public int getIDCell(){
		return this.ID;
	}
	
	public int getPersonID(){
		return this.personID;
	}
	
	public void setPersonID(int personID){
		this.personID = personID;
	}
	
	public void addNumEdge(){
		this.NumEdge+=1;
	}
	
	public boolean isFull(){
		return this.NumEdge==4;
	}
}
